from flask_restful import Api

from apps.bg.views import bGListView,salmListView,scanListView,bGgroupView,bGListPkView

baogong_api = Api(prefix='/baogong')



# 查询人事资料选择
baogong_api.add_resource(salmListView,'/salmlist/',endpoint='mfygList')

# 报工查询与新增
baogong_api.add_resource(bGListView,'/list/')

# 报工单个操作
baogong_api.add_resource(bGListPkView,'/list/<pk>/')

# 报工组查询
baogong_api.add_resource(bGgroupView,'/group/')
# 报工扫码
baogong_api.add_resource(scanListView,'/scanlist/',endpoint='scanlist')